package com.hdy.orderforthree;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.hdy.orderforthree.mvp.FoodModel;
import com.hdy.orderforthree.mvp.FoodPresenter;
import com.hdy.orderforthree.mvp.FoodView;

public class MainActivity extends Activity{

    FoodPresenter mFoodPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE
                | View.SYSTEM_UI_FLAG_FULLSCREEN
                | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

        setContentView(R.layout.three_fragment_layout);

        mFoodPresenter = new FoodPresenter(new FoodView(findViewById(R.id.main_content)), new FoodModel());
        mFoodPresenter.loadFoodData();
    }
}
